<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class CreateExhibitionNameTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('exhibition_name', function (Blueprint $table) {
            $table->id();
            $table->string("name")->comment("展会名");
            $table->boolean("is_open")->comment("是否开启")->default(false);
            $table->integer("add_edit_time")->comment("编辑添加时间");
            $table->boolean("is_show")->comment("是否展示");
        });
        DB::statement("ALTER TABLE `exhibition_name` comment'会议设定表'");//表注释
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('exhibition_name');
    }
}
